-4321>>>30得多少

来源:百度知道 编辑:UC知道 时间:2024/06/20 06:05:38
为什么得出个3来

public class Test {

public static void main(String[] args) {
int a = -4321;
int b = a>>>30;//无符号右移30位
System.out.println(Integer.toBinaryString(a) + ":" + a);
System.out.println(Integer.toBinaryString(b) + ":" + b);
}
}